package com.glory.huaweipda.bean;

import java.io.Serializable;
import java.util.UUID;

/**
 * @author Hx
 * @date 2020/1/31
 * @desc 网络请求/回复header
 */

public class HeaderBean implements Serializable {

    private String transactionid; //请求唯一代码
    private String messagename;//请求方法名
    private String machinename;//请求当前用户
    private String eventtime; //回复false的错误信息
    public HeaderBean(){

    }
    public HeaderBean(String messageName){

        this.messagename = messageName;
        this.eventtime = String.valueOf(System.currentTimeMillis());
        this.transactionid= UUID.randomUUID().toString();
        this.machinename = "EAP";
    }

    public String getTransactionid() {
        return transactionid;
    }

    public String getMessagename() {
        return messagename;
    }

    public String getMachinename() {
        return machinename;
    }

    public String getEventtime() {
        return eventtime;
    }

    public void setTransactionid(String transactionid) {
        this.transactionid = transactionid;
    }

    public void setMessagename(String messagename) {
        this.messagename = messagename;
    }

    public void setMachinename(String machinename) {
        this.machinename = machinename;
    }

    public void setEventtime(String eventtime) {
        this.eventtime = eventtime;
    }
}
